package com.school.graduation.model;

import java.io.Serializable;

import cn.bmob.v3.BmobUser;

/**
 * 学生信息
 * Created by heyiyong on 2016/12/20.
 */
public class Student extends BmobUser implements Serializable {
    private String nickName; // 昵称
    private School school; // 所属学校
    private String studentName;  //姓名
    private int sex;  //性别
    private String address; //地址
    private String clientId; // 个推clientId
    private String avatarUrl; // 头像URL
    private int credit;       //信用度
    private int creditRating; //信用等级
    private double longitude;
    private double latitude;

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public int getCreditRating() {
        return creditRating;
    }

    public void setCreditRating(int creditRating) {
        this.creditRating = creditRating;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public School getSchool() {
        return school;
    }

    public void setSchool(School school) {
        this.school = school;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    @Override
    public String toString() {
        return "Student{" +
                "nickName='" + nickName + '\'' +
                ", school=" + school +
                ", studentName='" + studentName + '\'' +
                ", sex=" + sex +
                ", address='" + address + '\'' +
                ", clientId='" + clientId + '\'' +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", credit=" + credit +
                ", creditRating=" + creditRating +
                ", longitude=" + longitude +
                ", latitude=" + latitude +
                '}';
    }
}
